package com.dearbinge.data.dao;

import com.dearbinge.data.pojo.commodity.CommodityMessage;
import org.apache.ibatis.annotations.Param;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper
public interface CommodityMessageMapper {
    Integer insert(CommodityMessage commodityMessage);

    Integer update(CommodityMessage commodityMessage);

    List<CommodityMessage> getAll();

    List<CommodityMessage> getByAsk(@Param("keyWords") String keyWords,@Param("isDeleted") Boolean isDeleted);

    CommodityMessage getById(Integer id);
}
